import request from '../utils/request';

//条件分页查询
export const queryNursingAll = (page,pageSize,name,unit,createBy) => {return request.get(`/nursing?page=${page}&pageSize=${pageSize}&name=${name}&unit=${unit}&createBy=${createBy}`)};

//添加
export const addNursing = (data) => {return request.post('/nursing',data)};

//回显查询
export const queryNursingById = (id) => {return request.get(`/nursing/${id}`)};

//修改
export const updateNursing = (data) => {return request.put('/nursing',data)};

//删除
export const deleteNursing = (id) => {return request.delete(`/nursing/${id}`)};